/*
 * $Id: ObjectTypeModelType.java 87 2009-06-22 02:47:41Z donbeave $
 */

package labour.concept.client.data;

import com.extjs.gxt.ui.client.data.DataField;
import com.extjs.gxt.ui.client.data.ModelType;

public class ObjectTypeModelType extends ModelType {

  public ObjectTypeModelType() {
    setRoot("data");
    setTotalName("totalCount");

    addFields();
  }

  protected void addFields() {
    addField(ObjectTypeModel.ID);

    DataField field = new DataField(ObjectTypeModel.SORT_ORDER);
    field.setType(Integer.class);
    addField(field);

    field = new DataField(ObjectTypeModel.IS_FAKE);
    field.setType(Boolean.class);
    addField(field);

    addField(ObjectTypeModel.NAME);
  }

}
